package com.danco.training.hoteladmin.services;

import java.util.ArrayList;

import com.danco.training.hoteladmin.core.Room;
import com.danco.training.hoteladmin.storage.Storage;

public class RoomService {
	Storage store= new Storage();
	
	public ArrayList<Room> roomsReadFromFile(String path){
		return store.roomsReadFromFile(path);
	}
	
	public void roomsWriteToFile(String path){
		store.roomsWriteToFile(path);
	}
	
	public void showRoomArray(){
		store.showRoomArray();
	}
	
	public void showFreeRooms(){
		store.showFreeRooms();
	}
	
	public void addRoom(Room room){
		store.addRoom(room);
	}
	
	public void changeRoomStatus(Room room){
		store.changeRoomStatus(room);
	}
	
	public void changeRoomPrice(Room room,int price){		
		 store.changeRoomPrice(room, price);
	}
}
